package com.study.jyg.rxjava2study.daggerstudy;

import android.widget.Toast;

import com.study.jyg.rxjava2study.MyApplication;

public class TestA {

    private TestB b;

    public TestA(TestB b){
        this.b = b;
    }
    public TestA(){}

    public void tall(){
        Toast.makeText(MyApplication.getAppContext(), "调用了TestA的tall()方法", Toast.LENGTH_SHORT).show();
    }

    public void setB( String test){
        b.setTest(test);
    }

    public void toastB(){
        Toast.makeText(MyApplication.getAppContext(), b.getTest(), Toast.LENGTH_SHORT).show();
    }
}
